package com.hongwang.com.hongwang.client;

import com.alibaba.boot.dubbo.annotation.DubboConsumer;
import com.alibaba.dubbo.config.annotation.Reference;
import com.hongwang.request.StudentRequest;
import com.hongwang.service.StudentService;
import org.springframework.stereotype.Component;

/**
 *
 * @author 1
 * @date 2018/1/16
 */
@Component
public class StudentCient {

    @DubboConsumer(version = "1.0.0",timeout = 5000)
    StudentService studentService;

    public Integer save(StudentRequest request){
       return studentService.save(request);
    }
}
